package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.WinRecordFruitMachineInfo;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xuanqicheng
 * @create 2019-16-10:48
 */
@Repository
public class WinRecordFruitMachineInfoDao {
    @Autowired
    private SqlSession sqlSession;

    public void addWinRecordFruitMachineInfo(WinRecordFruitMachineInfo winRecordFruitMachineInfo) {
        sqlSession.insert("addWinRecordFruitMachineInfo",winRecordFruitMachineInfo);
    }

    public List<WinRecordFruitMachineInfo> selectListByWinInfoSize(int size) {
        return sqlSession.selectList("selectListByWinInfoSize",size);
    }
}
